package com.xxg.renrenorder.domain.query;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 分页查看售后订单参数
 *
 * @author xxg
 * @date 2020/10/30
 */
@Data
@ApiModel(value = "AfterSalesOrderListQuery", description = "分页查看售后订单参数")
public class AfterSalesOrderListQuery {
    @NotNull(message = "pageNo不能为null")
    @Min(value = 1, message = "pageNo的值不能小于1")
    @ApiModelProperty(value = "页码", required = true)
    private Integer pageNo;
    @NotNull(message = "pageSize不能为null")
    @Min(value = 1, message = "pageSize的值不能小于1")
    @Max(value = 100, message = "pageSize的值不能大于100")
    @ApiModelProperty(value = "页大小", required = true)
    private Integer pageSize;
    @ApiModelProperty(value = "0-待审核，1-等待退货，2-退款中，3-退款完成,4-审核不通过,null-全部")
    private List<Integer> orderStatus;
    @ApiModelProperty(value = "开始日期 yyyy-MM-dd HH:mm:ss")
    private String startDate;
    @ApiModelProperty(value = "结束日期 yyyy-MM-dd HH:mm:ss")
    private String endDate;
    @ApiModelProperty(value = "商品名称")
    private String spuName;
    @ApiModelProperty(value = "已经点击退款 true-已点击")
    private Boolean hasClickReFund;
}